.class public Lcom/hierynomus/smbj/smb2/messages/b;
.super Lcom/hierynomus/smbj/smb2/d;
.source "SMB2CreateRequest.java"


# instance fields
.field private final c:Ljava/util/EnumSet;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/EnumSet<",
            "Lcom/hierynomus/msfscc/FileAttributes;",
            ">;"
        }
    .end annotation
.end field

.field private final d:Ljava/util/EnumSet;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/EnumSet<",
            "Lcom/hierynomus/smbj/smb2/SMB2ShareAccess;",
            ">;"
        }
    .end annotation
.end field

.field private final e:Lcom/hierynomus/smbj/smb2/SMB2CreateDisposition;

.field private final f:Ljava/util/EnumSet;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/EnumSet<",
            "Lcom/hierynomus/smbj/smb2/SMB2CreateOptions;",
            ">;"
        }
    .end annotation
.end field

.field private final g:Ljava/lang/String;

.field private final h:J


# direct methods
.method public constructor <init>(Lcom/hierynomus/smbj/smb2/SMB2Dialect;JJJLjava/util/EnumSet;Ljava/util/EnumSet;Lcom/hierynomus/smbj/smb2/SMB2CreateDisposition;Ljava/util/EnumSet;Ljava/lang/String;)V
    .locals 9
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/hierynomus/smbj/smb2/SMB2Dialect;",
            "JJJ",
            "Ljava/util/EnumSet<",
            "Lcom/hierynomus/msfscc/FileAttributes;",
            ">;",
            "Ljava/util/EnumSet<",
            "Lcom/hierynomus/smbj/smb2/SMB2ShareAccess;",
            ">;",
            "Lcom/hierynomus/smbj/smb2/SMB2CreateDisposition;",
            "Ljava/util/EnumSet<",
            "Lcom/hierynomus/smbj/smb2/SMB2CreateOptions;",
            ">;",
            "Ljava/lang/String;",
            ")V"
        }
    .end annotation

    move-object v8, p0

    .line 1
    sget-object v3, Lcom/hierynomus/smbj/smb2/SMB2MessageCommandCode;->SMB2_CREATE:Lcom/hierynomus/smbj/smb2/SMB2MessageCommandCode;

    const/16 v1, 0x39

    move-object v0, p0

    move-object v2, p1

    move-wide v4, p2

    move-wide v6, p4

    invoke-direct/range {v0 .. v7}, Lcom/hierynomus/smbj/smb2/d;-><init>(ILcom/hierynomus/smbj/smb2/SMB2Dialect;Lcom/hierynomus/smbj/smb2/SMB2MessageCommandCode;JJ)V

    move-wide v0, p6

    .line 2
    iput-wide v0, v8, Lcom/hierynomus/smbj/smb2/messages/b;->h:J

    .line 3
    const-class v0, Lcom/hierynomus/msfscc/FileAttributes;

    move-object/from16 v1, p8

    invoke-static {v1, v0}, Les/ed0$a;->a(Ljava/util/EnumSet;Ljava/lang/Class;)Ljava/util/EnumSet;

    move-result-object v0

    iput-object v0, v8, Lcom/hierynomus/smbj/smb2/messages/b;->c:Ljava/util/EnumSet;

    .line 4
    const-class v0, Lcom/hierynomus/smbj/smb2/SMB2ShareAccess;

    move-object/from16 v1, p9

    invoke-static {v1, v0}, Les/ed0$a;->a(Ljava/util/EnumSet;Ljava/lang/Class;)Ljava/util/EnumSet;

    move-result-object v0

    iput-object v0, v8, Lcom/hierynomus/smbj/smb2/messages/b;->d:Ljava/util/EnumSet;

    move-object/from16 v0, p10

    .line 5
    iput-object v0, v8, Lcom/hierynomus/smbj/smb2/messages/b;->e:Lcom/hierynomus/smbj/smb2/SMB2CreateDisposition;

    .line 6
    const-class v0, Lcom/hierynomus/smbj/smb2/SMB2CreateOptions;

    move-object/from16 v1, p11

    invoke-static {v1, v0}, Les/ed0$a;->a(Ljava/util/EnumSet;Ljava/lang/Class;)Ljava/util/EnumSet;

    move-result-object v0

    iput-object v0, v8, Lcom/hierynomus/smbj/smb2/messages/b;->f:Ljava/util/EnumSet;

    move-object/from16 v0, p12

    .line 7
    iput-object v0, v8, Lcom/hierynomus/smbj/smb2/messages/b;->g:Ljava/lang/String;

    return-void
.end method


# virtual methods
.method protected d(Lcom/hierynomus/smbj/common/b;)V
    .locals 6

    .line 1
    iget v0, p0, Lcom/hierynomus/smbj/smb2/d;->b:I

    invoke-virtual {p1, v0}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->c(I)Lcom/hierynomus/protocol/commons/buffer/Buffer;

    const/4 v0, 0x0

    .line 2
    invoke-virtual {p1, v0}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->a(B)Lcom/hierynomus/protocol/commons/buffer/Buffer;

    .line 3
    invoke-virtual {p1, v0}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->a(B)Lcom/hierynomus/protocol/commons/buffer/Buffer;

    const-wide/16 v1, 0x1

    .line 4
    invoke-virtual {p1, v1, v2}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->b(J)Lcom/hierynomus/protocol/commons/buffer/Buffer;

    const/16 v1, 0x8

    .line 5
    invoke-virtual {p1, v1}, Lcom/hierynomus/smbj/common/b;->i(I)Lcom/hierynomus/protocol/commons/buffer/Buffer;

    .line 6
    invoke-virtual {p1, v1}, Lcom/hierynomus/smbj/common/b;->i(I)Lcom/hierynomus/protocol/commons/buffer/Buffer;

    .line 7
    iget-wide v1, p0, Lcom/hierynomus/smbj/smb2/messages/b;->h:J

    invoke-virtual {p1, v1, v2}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->b(J)Lcom/hierynomus/protocol/commons/buffer/Buffer;

    .line 8
    iget-object v1, p0, Lcom/hierynomus/smbj/smb2/messages/b;->c:Ljava/util/EnumSet;

    invoke-static {v1}, Les/ed0$a;->a(Ljava/util/Collection;)J

    move-result-wide v1

    invoke-virtual {p1, v1, v2}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->b(J)Lcom/hierynomus/protocol/commons/buffer/Buffer;

    .line 9
    iget-object v1, p0, Lcom/hierynomus/smbj/smb2/messages/b;->d:Ljava/util/EnumSet;

    invoke-static {v1}, Les/ed0$a;->a(Ljava/util/Collection;)J

    move-result-wide v1

    invoke-virtual {p1, v1, v2}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->b(J)Lcom/hierynomus/protocol/commons/buffer/Buffer;

    .line 10
    iget-object v1, p0, Lcom/hierynomus/smbj/smb2/messages/b;->e:Lcom/hierynomus/smbj/smb2/SMB2CreateDisposition;

    const-wide/16 v2, 0x0

    if-nez v1, :cond_0

    move-wide v4, v2

    goto :goto_0

    :cond_0
    invoke-virtual {v1}, Lcom/hierynomus/smbj/smb2/SMB2CreateDisposition;->getValue()J

    move-result-wide v4

    :goto_0
    invoke-virtual {p1, v4, v5}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->b(J)Lcom/hierynomus/protocol/commons/buffer/Buffer;

    .line 11
    iget-object v1, p0, Lcom/hierynomus/smbj/smb2/messages/b;->f:Ljava/util/EnumSet;

    invoke-static {v1}, Les/ed0$a;->a(Ljava/util/Collection;)J

    move-result-wide v4

    invoke-virtual {p1, v4, v5}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->b(J)Lcom/hierynomus/protocol/commons/buffer/Buffer;

    .line 12
    iget v1, p0, Lcom/hierynomus/smbj/smb2/d;->b:I

    add-int/lit8 v1, v1, 0x40

    const/4 v4, 0x1

    sub-int/2addr v1, v4

    .line 13
    iget-object v5, p0, Lcom/hierynomus/smbj/smb2/messages/b;->g:Ljava/lang/String;

    if-eqz v5, :cond_2

    invoke-virtual {v5}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/String;->length()I

    move-result v5

    if-nez v5, :cond_1

    goto :goto_1

    .line 14
    :cond_1
    iget-object v0, p0, Lcom/hierynomus/smbj/smb2/messages/b;->g:Ljava/lang/String;

    invoke-static {v0}, Lcom/hierynomus/smbj/smb2/b;->a(Ljava/lang/String;)[B

    move-result-object v0

    .line 15
    invoke-virtual {p1, v1}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->c(I)Lcom/hierynomus/protocol/commons/buffer/Buffer;

    .line 16
    array-length v1, v0

    invoke-virtual {p1, v1}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->c(I)Lcom/hierynomus/protocol/commons/buffer/Buffer;

    goto :goto_2

    .line 17
    :cond_2
    :goto_1
    invoke-virtual {p1, v1}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->c(I)Lcom/hierynomus/protocol/commons/buffer/Buffer;

    .line 18
    invoke-virtual {p1, v0}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->c(I)Lcom/hierynomus/protocol/commons/buffer/Buffer;

    new-array v0, v4, [B

    .line 19
    :goto_2
    invoke-virtual {p1, v2, v3}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->b(J)Lcom/hierynomus/protocol/commons/buffer/Buffer;

    .line 20
    invoke-virtual {p1, v2, v3}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->b(J)Lcom/hierynomus/protocol/commons/buffer/Buffer;

    .line 21
    invoke-virtual {p1, v0}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->a([B)Lcom/hierynomus/protocol/commons/buffer/Buffer;

    return-void
.end method
